package array;

import java.util.ArrayList;
import java.util.Collection;

public class Test02 {

	public static void main(String[] args) {
		int[] array01= {1,1,1,1,1,12,2,2,2,3,2};
		int[] array02= {21,2,1,21,2,1,2,1,21,2,64,45,54,5};
		int[] array03;
		array03=new int[] {2,3,6,8,565,65,6};
		int[] array04;
		array04=new int[5];
		
		for(int x=0;x<array04.length;x++) {
			array04[x]=2*x+1;
		}
		System.out.println();
		for(int x : array01) {
			System.out.print(" "+x);
		}
		System.out.println();
		
		
		int[][] array2= {array01,array02,array03,array04};
		for(int x=0;x<array2.length;x++) {
			for(int y=0;y<array2[x].length;y++) {
				System.out.print(" "+array2[x][y]);
			}
			System.out.println();
		}
		
		
		System.out.println();
		Collection<String> list=new ArrayList<String>();
		list.add("haha");
		list.add("xixix");
		list.add("zxzxzx");
		for(String x : list) {
			System.out.print(" "+x);
		}
		ArrayList<String> listTwo=new ArrayList<String>();
		listTwo.add("zxc");
		

	}

}
